package
{
	import flash.display.Sprite;
	import flash.utils.Dictionary;

	public class Test4 extends Sprite
	{
		public function Test4()
		{
			var dict = new Dictionary();
			var obj = new Object();
			var key:Object = new Object();
			key.toString = function() { return "key" }
			
			dict[key] = "Letters";
			obj["key"] = "Letters";
			
			dict[key] == "Letters"; // true
			obj["key"] == "Letters"; // true
			obj[key] == "Letters"; // true because key == "key" is true b/c key.toString == "key"
			dict["key"] == "Letters"; // false because "key" === key is false
			delete dict[key]; //removes the key
		}
	}
}